Exercise1_week2

25 Sep 2024

A Centered Still Figure

“Good Luck Charm Talisman” is designed to attract good luck, fortune, and protection.
Good Luck Talisman

An interactive table

The documentary I recently watched

A 2-column Slide

Discrimination
  • How well can the model discriminate between positive and negative cases.
  • sensitivity:true positives / total positives
  • specificity:true negative / total negatives
  • AUC: area under the ROC curve

Calibration
  • How are model predictions and event rates aligned instrument of risk?
  • calibration plots, expected calibration error

An Aligned Multi-row equation

\[ \begin{align} y &= \beta_0 + \beta_1 x_1 + \epsilon_1 \\ z &= \gamma_0 + \gamma_1 x_2 + \epsilon_2\\ w &= \delta_0 + \delta_1 x_3 + \epsilon_3 \end{align} \]

A Citation and Reference List & A Bibliographic Reference

The eICU Collaborative Research Database is a publicly available dataset that includes detailed clinical data from intensive care units (ICUs) across the United States (T. Pollard et al. 2019). It provides information on patient demographics, vital signs, and treatments, supporting research on critical care outcomes like mortality and length of stay (T. J. Pollard et al. 2018).

Pollard, Tom J., Alistair E. W. Johnson, J. D. Raffa, Leo Anthony Celi, Roger G. Mark, and Omar Badawi. 2018. “The eICU Collaborative Research Database, a Freely Available Multi-Center Database for Critical Care Research.” Scientific Data 5: 180178. https://doi.org/10.1038/sdata.2018.178.
Pollard, Tom, Alistair Johnson, J. Raffa, Leo Anthony Celi, Omar Badawi, and Roger Mark. 2019. “eICU Collaborative Research Database (Version 2.0).” PhysioNet. https://doi.org/10.13026/C2WM1R.

R-code, Displayed but not executed

library(ggplot2)
library(dplyr)
library(palmerpenguins)
ggplot(data = penguins, aes(x = flipper_length_mm, y = body_mass_g, color = species)) +
  geom_point() +
  labs(title = "Penguin Body Mass vs. Flipper Length",
       x = "Flipper Length (mm)",
       y = "Body Mass (g)") +
  theme_minimal()

Cached and Labeled r-code(may overlap with the next requirement)

library(ggplot2)
ggplot(data = palmerpenguins::penguins, aes(x = flipper_length_mm, y = body_mass_g)) +
  geom_point()

r-code, executed, but not displayed(figure generation)

an renv reproducible environment

library(renv)

renv::init()
renv::snapshot()
- The lockfile is already up to date.
sessionInfo()
R version 4.3.2 (2023-10-31)
Platform: aarch64-apple-darwin20 (64-bit)
Running under: macOS 15.0

Matrix products: default
BLAS:   /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/lib/libRblas.0.dylib 
LAPACK: /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/lib/libRlapack.dylib;  LAPACK version 3.11.0

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

time zone: Europe/Amsterdam
tzcode source: internal

attached base packages:
[1] stats     graphics  grDevices datasets  utils     methods   base     

other attached packages:
[1] renv_1.0.9    ggplot2_3.5.1 dplyr_1.1.4   DT_0.33      

loaded via a namespace (and not attached):
 [1] gtable_0.3.4         jsonlite_1.8.8       compiler_4.3.2      
 [4] tidyselect_1.2.0     jquerylib_0.1.4      scales_1.3.0        
 [7] yaml_2.3.8           fastmap_1.1.1        R6_2.5.1            
[10] labeling_0.4.3       generics_0.1.3       knitr_1.45          
[13] htmlwidgets_1.6.4    palmerpenguins_0.1.1 tibble_3.2.1        
[16] munsell_0.5.0        bslib_0.6.1          pillar_1.9.0        
[19] rlang_1.1.3          utf8_1.2.4           cachem_1.0.8        
[22] xfun_0.42            sass_0.4.8           cli_3.6.2           
[25] withr_3.0.0          magrittr_2.0.3       crosstalk_1.2.1     
[28] digest_0.6.34        grid_4.3.2           lifecycle_1.0.4     
[31] vctrs_0.6.5          evaluate_0.23        glue_1.7.0          
[34] farver_2.1.1         fansi_1.0.6          colorspace_2.1-0    
[37] rmarkdown_2.28       tools_4.3.2          pkgconfig_2.0.3     
[40] ellipsis_0.3.2       htmltools_0.5.7